#socket_client.py

import socket

def socket_send(command):
	sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
        sock.connect(('192.168.1.55', 1000))
        sock.send(command)
        result = sock.recv(2048)
        sock.close()
        return result

if __name__ == '__main__':
	 print socket_send('ls')